package com.dlc.shop.bean.event;

import com.dlc.shop.bean.app.dto.ShopCartOrderMergerDto;
import com.dlc.shop.bean.vo.EsProdUpdateVO;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.List;

/**
 * 提交订单时的事件
 * @author LGH
 */
@Data
@AllArgsConstructor
public class TryLockStockEvent {

    public TryLockStockEvent(ShopCartOrderMergerDto mergerOrder, String userId) {
        this.mergerOrder = mergerOrder;
        this.userId = userId;
    }

    /**
     * 完整的订单信息
     */
    private final ShopCartOrderMergerDto mergerOrder;

    private String userId;

    private List<EsProdUpdateVO> prodList;

}
